package org.wu.framework.test.test.select;

import org.wu.framework.lazy.orm.database.lambda.stream.condition.BasicComparison;
import org.wu.framework.lazy.orm.database.lambda.stream.condition.LambdaBasicComparison;
import org.wu.framework.lazy.orm.database.lambda.stream.wrapper.LazyWrappers;
import org.wu.framework.test.domain.LazyUserTest;
import org.wu.framework.test.test.AbstractTestRunner;
import org.wu.framework.test.test.TestRunner;

import java.time.LocalDateTime;

public abstract class AbstractSelectTestRunner extends AbstractTestRunner implements TestRunner {

    public BasicComparison<LazyUserTest, ?, ?, ?>  getBasicComparison(){
        LambdaBasicComparison<LazyUserTest> eq = LazyWrappers.<LazyUserTest>lambdaWrapper()
                .eq(LazyUserTest::getIsDeleted, false)
                .eq(LazyUserTest::getSex, LazyUserTest.Sex.MAN)
                .gt(LazyUserTest::getAge, 10)
                .gt(LazyUserTest::getBirthday, LocalDateTime.now())
                ;
        return eq;
    }


}
